<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" session="false"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

	
	<%
		//本例子 演示了服务器给浏览器发送Cookie的基本用法
		//为了避免session的影响。请在上面增加session="false"
		
		//1：创建1个javax.servlet.http.Cookie类的对象
		Cookie cookie = new Cookie("school","zsrt");
	
		//2：调用response的方法将cookie发送给浏览器
		response.addCookie(cookie);
		
		
	
	%>

</body>
</html>